home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / viewkit / xcontact / BUILD.XCONTACT < prev    next >
Encoding:
Text File  |  1994-08-02  |  2.3 KB  |  81 lines

  1. #!/bin/csh
  2. ##########################################################################
  3. ## This is a generic BUILD image script.  Copy this file and name it
  4. ## something like BUILD_PRODNAME (eg. BUILD_OASISIII).
  5. ##
  6. ##    10/22/93 created: Ivan hajadi@csd.sgi.com
  7. ##
  8. ## To execute this script you need to have created the spec file for the
  9. ## product and your machine has /usr/sbin/gendist program.
  10. ## You can obtain gendist by: 
  11. ##    1. rcp-ing from your colleague's machine.
  12. ##    2. inst-ing noship.sw.buildtools from 
  13. ##        dist.wpd:/all_parts/released/4.0.5F/noship
  14. ##        dist.wpd:/all_parts/released/5.0/noship
  15. ##
  16. ## This script assume that your spec file is called PRODNAME.spec, and
  17. ## the dist image will be put in directory ./dist.PRODNAME.
  18. ##
  19. ## If you use the above assumptions, then the only things that need to be 
  20. ## changed for your specific image are these 2 variables:
  21.  
  22. setenv PRODNAME xcontact    # Put your product name here (eg. oasisIII)
  23.  
  24. setenv TOPSRC `pwd`     # Put your top level dir here.  By default is curr dir. 
  25.            # (eg. setenv TOPSRC /d/projects/kr)
  26.                    # Typically, top level dir is located under ~/projects.
  27.            # This script will cd there.
  28.  
  29. ## You can optionally set the following too:
  30.  
  31. setenv DISTDIR dist  # Destination directory for image.
  32.  
  33. #echo -n "Enter Alpha number: "
  34. setenv ALPHA 108     # Usually used by spec file (eg. setenv ALPHA 100).
  35.  
  36. setenv RELEASE 0.98    # Usually used by spec file (eg. setenv RELEASE 1.0).
  37.  
  38. setenv ROOT /      # Change these if you know what you're doing.
  39. setenv INSTALL install
  40.  
  41. ## That's all.  Do not change anything below this line, unless you are
  42. ## a geek like me!!!
  43. ##########################################################################
  44.  
  45.  
  46. date
  47. echo ""
  48. echo ">>>>>>>>>>>>>> Building Image ... ALPHA ${ALPHA}..."
  49. echo ""
  50. echo ""
  51. setenv SRC ${TOPSRC}
  52. setenv RAWIDB ${SRC}/${PRODNAME}.idb
  53. if ( ${DISTDIR} == "" ) then
  54.     setenv DISTDIR ${SRC}/dist
  55. endif
  56.  
  57. cd ${SRC}
  58. if  ( ! -d ${DISTDIR} ) then
  59.         mkdir ${DISTDIR}
  60. endif
  61.  
  62.  
  63. /bin/touch ${DISTDIR}/nothing # we don't want to see that error msg from rm
  64.                               # when DISTDIR is empty.
  65. /bin/rm ${DISTDIR}/*
  66. make ${INSTALL}
  67.  
  68. /bin/touch idb3
  69. /bin/rm idb3
  70. sort -u +4 ${RAWIDB} > idb3
  71.  
  72. gendist -v -dist ${DISTDIR} -sbase ${SRC} -idb idb3 -spec spec.${PRODNAME}
  73.  
  74. /bin/rm idb3
  75. /bin/rm ${RAWIDB}
  76.  
  77. echo ""
  78. echo "Done."
  79. echo ""
  80. date
  81.